# -*- coding: utf-8 -*-
# @Time     : 2021/4/19 22:19
# @Author   : pengrenjie
# @Email    : 941257162@.com
# @File     : 9.py
import collections
import string
# dicword = {}
n = input("请输入一个字符串：")
n1 = n.translate(str.maketrans('','',string.punctuation)).split()
# for word in n:
print(collections.Counter(n1))